package com.ybkj.o2o.sales.service;


import com.ybkj.o2o.sales.entity.Application;

import java.util.List;

/**
 * Created by shine on 15/8/21.
 */
public interface ApplicationService {
  /**
   * 根据名称判断应用是否存在.
   */
  boolean exists(String name);

  /**
   * 根据AppId查询Application.
   */
  Application fetchByAppId(String appId);

  List<Application> findAll(int offset, int rows);

  long count();

  void insert(Application application);

  Application fetch(Long id);

  void update(Application application);

  void delete(Long id);
}
